package light.head.model;

import java.io.Serializable;


public class MessageReceivePK implements Serializable {

	private static final long serialVersionUID = 1530433929351904922L;
	
	
	private Integer mc;						// 消息编号
	private Integer ruc;					// 接收用户编号
	
	
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
            return true;
        }
        if (null == obj) {
            return false;
        }
        if (!(obj instanceof MessageReceivePK)) {
            return false;
        }

        final MessageReceivePK pko = (MessageReceivePK) obj;
        if (!ruc.equals(pko.getRuc())) {
            return false;
        }
        if (null == mc || mc.intValue() != pko.getMc().intValue()) {
            return false;
        }
        return true;
	}
	
	@Override
	public int hashCode() {
		int result;
        result = mc.hashCode();
        result = 29 * result + ruc.hashCode();
        return result;
	}
	
	
	

	public Integer getMc() {
		return mc;
	}
	public void setMc(Integer mc) {
		this.mc = mc;
	}
	public Integer getRuc() {
		return ruc;
	}
	public void setRuc(Integer ruc) {
		this.ruc = ruc;
	}
}
